Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependency update (& remove happy_with) #13

Merged
merged 7 commits into from
Nov 4, 2024
Merged

Conversation

oxg558
Copy link
Contributor

@oxg558 oxg558 commented Nov 1, 2024

Removes the happy_with library -- there were no usages that couldn't have been a case or a regular with, and the library triggers compile warnings on OTP26+:

==> happy_with
Compiling 1 file (.ex)
Generated happy_with app
warning: negative steps are not supported in Enum.slice/2, pass 0..-2//1 instead
  (elixir 1.16.3) lib/enum.ex:2994: Enum.slice/2
  (happy_with 1.0.1) lib/happy_with.ex:41: HappyWith.rewrite/2

@oxg558 oxg558 requested a review from a team as a code owner November 1, 2024 15:37
Copy link
Contributor

@patrick-prima patrick-prima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, future CTO!

@oxg558 oxg558 requested a review from cottinisimone November 1, 2024 16:46
@@ -36,14 +36,13 @@ defmodule Avrogen.MixProject do
defp deps do
[
{:accessible, "~> 0.3"},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:credo, "== 1.7.1", only: [:dev, :test], runtime: false},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was to avoid a big refactor to deal with:

┃ [R] ↗ Predicate function names should not start with 'is', and should end in a 
┃       question mark.
┃       lib/avrogen/types.ex:50:7 #(Avrogen.Types.is_primitive?)

We can do it one day, but not now

@@ -16,8 +16,8 @@ jobs:
steps:
- uses: erlef/setup-beam@v1
with:
elixir-version: 1.15
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about using a matrix to test latest and older versions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you know how to do it, that could be worthwhile in future

@oxg558 oxg558 merged commit a5d0956 into master Nov 4, 2024
3 checks passed
@oxg558 oxg558 deleted the oli-remove-happywith branch November 4, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants